//
//  AvailabilityTextAttachment.m
//  Statz
//
//  Created by Dave MacLachlan on 07/08/02.
//  Copyright 2007 Google Inc. All rights reserved.
//

#import "AvailabilityTextAttachment.h"
#import "AvailabilityTokenCell.h"

@implementation AvailabilityTextAttachment

- (id)initWithState:(StatzState)value {
  if ((self = [super initWithFileWrapper:nil])) {
    AvailabilityTokenCell *cell = [[[AvailabilityTokenCell alloc] init] autorelease];
    [self setAttachmentCell:cell];
    [cell setAttachment:self];
    [self setState:value];
  }
  return self;
}

- (StatzState)state {
  return state;
}

- (void)setState:(StatzState)value {
  if (state != value) {
    state = value;
  }
}


@end
